﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UsersMaster.master" AutoEventWireup="true"
    CodeBehind="NewClient.aspx.cs" Inherits="SMS.Client.NewClient" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxControl" %>
<asp:Content ID="Content1" ContentPlaceHolderID="UserMainContent" runat="server">
    <div class="boxed">
        <h2 class="title" dir="rtl">
            <img src="../App_Themes/Theme/images/Add Item.png" class="img" />
            اضافة عميل جديد</h2>
        <div dir="rtl" class="content">
            <table style="text-align:right;" dir="rtl">
                <tr align="right">
                    <td align="right">
                        <asp:Label ID="UserNameLabel" runat="server">الإسم :</asp:Label>
                    </td>
                    <td align="right">
                        <asp:TextBox ID="txtName" runat="server" />
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="txtName"
                            CssClass="failureNotification" ErrorMessage="User Name is required." ToolTip="User Name is required."
                            ValidationGroup="RegisterUserValidationGroup" Text="<img src=../App_Themes/Theme/images/Error.png style=float:right; width=10%; height=10%;" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="EmailLabel" runat="server">البريد الإلكتروني :</asp:Label>
                    </td>
                    <td align="right">
                        <asp:TextBox ID="txtEmail" runat="server" />
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtEmail"
                            CssClass="failureNotification" ErrorMessage="E-mail is required." ToolTip="E-mail is required."
                            ValidationGroup="RegisterUserValidationGroup" Text="<img src=../App_Themes/Theme/images/Error.png style=float:right; width=10%; height=10%;" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="Label3" runat="server">العنوان :</asp:Label>
                    </td>
                    <td align="right">
                        <asp:TextBox ID="txtAdress" runat="server" />
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtAdress"
                            CssClass="failureNotification" ErrorMessage="User Name is required." ToolTip="User Name is required."
                            ValidationGroup="RegisterUserValidationGroup" Text="<img src=../App_Themes/Theme/images/Error.png style=float:right; width=10%; height=10%;" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="Label5" runat="server">الهاتف :</asp:Label>
                    </td>
                    <td align="right">
                        <asp:TextBox ID="txtPhone" runat="server" />
                        <AjaxControl:FilteredTextBoxExtender ID="txtPhone_FilteredTextBoxExtender" runat="server"
                            Enabled="True" FilterType="Numbers" TargetControlID="txtPhone">
                        </AjaxControl:FilteredTextBoxExtender>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtPhone"
                            CssClass="failureNotification" ErrorMessage="E-mail is required." ToolTip="Mobile is required."
                            ValidationGroup="RegisterUserValidationGroup" Text="<img src=../App_Themes/Theme/images/Error.png style=float:right; width=10%; height=10%;" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="Label2" runat="server">المحمول :</asp:Label>
                    </td>
                    <td align="right">
                        <asp:TextBox ID="txtMobile" runat="server" />
                        <AjaxControl:FilteredTextBoxExtender ID="txtMobile_FilteredTextBoxExtender" runat="server"
                            Enabled="True" FilterType="Numbers" TargetControlID="txtMobile">
                        </AjaxControl:FilteredTextBoxExtender>
                    </td>
                    <td align="right">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtMobile"
                            CssClass="failureNotification" ErrorMessage="E-mail is required." ToolTip="Mobile is required."
                            ValidationGroup="RegisterUserValidationGroup" Text="<img src=../App_Themes/Theme/images/Error.png style=float:right; width=10%; height=10%;" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="Label1" Text="0" runat="server">التخفيض :</asp:Label>
                    </td>
                    <td align="right">
                        <asp:TextBox ID="txtDiscountRate" runat="server" />
                        <AjaxControl:FilteredTextBoxExtender ID="txtDiscountRate_FilteredTextBoxExtender"
                            runat="server" Enabled="True" FilterType="Custom" ValidChars=".,1,2,3,4,5,6,7,8,9,0"
                            TargetControlID="txtDiscountRate">
                        </AjaxControl:FilteredTextBoxExtender>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtDiscountRate"
                            CssClass="failureNotification" ErrorMessage="E-mail is required." ToolTip="Discount Rate"
                            ValidationGroup="RegisterUserValidationGroup" Text="<img src=../App_Themes/Theme/images/Error.png style=float:right; width=10%; height=10%;" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="Label4" Text="0" runat="server">الرصيد :</asp:Label>
                    </td>
                    <td align="right">
                        <asp:TextBox ID="txtCredit" runat="server" />
                        <AjaxControl:FilteredTextBoxExtender ID="txtCredit_FilteredTextBoxExtender" runat="server"
                            Enabled="True" FilterType="Custom" ValidChars=".,1,2,3,4,5,6,7,8,9,0" TargetControlID="txtCredit">
                        </AjaxControl:FilteredTextBoxExtender>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtCredit"
                            CssClass="failureNotification" ErrorMessage="Credit is Requied." ToolTip="Credit "
                            ValidationGroup="RegisterUserValidationGroup" Text="<img src=../App_Themes/Theme/images/Error.png style=float:right; width=10%; height=10%;" />
                    </td>
                </tr>
                <tr>
                <td>
                </td>
                    <td align="right">
                        <asp:RadioButtonList ID="rdioMoneyType" runat="server" RepeatDirection="Horizontal"
                            RepeatLayout="Flow">
                            <asp:ListItem Text="دائن" Value="Credit" />
                            <asp:ListItem Text="مدين" Value="Debit" />
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td align="left" colspan="2">
                        <asp:Button ID="btnCreate" runat="server" Text="إضافة عميل" CssClass="checkoutbutton"
                            ValidationGroup="RegisterUserValidationGroup" OnClick="CreateUserButton_Click" />
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <asp:Label ID="lblResult" runat="server" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
